<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>表单自定义按钮</title>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
</head>
<body style="overflow-y: hidden" scroll="no">
<t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" action="cgformButtonController.do?save">
	<div style="text-align: center;">
		<input type="submit" value="提交">
	</div>
	<input id="id" name="id" type="hidden" value="${cgformButtonPage.id }">
	<input id="formId" name="formId" type="hidden" value="${cgformButtonPage.formId }">
	<table style="width: 600px;" cellpadding="0" cellspacing="1" class="formtable">
		<tr>
			<td align="right"><label class="Validform_label"> <t:mutiLang langKey="common.button.code"/> : </label></td>
			<td class="value"><input class="inputxt" id="buttonCode" name="buttonCode" ignore="ignore" value="${cgformButtonPage.buttonCode}"> <span class="Validform_checktip"></span></td>
		</tr>
		<tr>
			<td align="right"><label class="Validform_label"> <t:mutiLang langKey="common.button.name"/>: </label></td>
			<td class="value"><input class="inputxt" id="buttonName" name="buttonName" ignore="ignore" value="${cgformButtonPage.buttonName}"> <span class="Validform_checktip"></span></td>
		</tr>
		<tr>
			<td align="right"><label class="Validform_label">功能类型: </label></td>
			<td class="value">
				<select id="functionType" name="functionType">
					<option value="BasicType" <c:if test="${cgformButtonPage.functionType=='BasicType'}">selected="selected"</c:if>>普通表单</option>
					<option value="ManyToManyType" <c:if test="${cgformButtonPage.functionType=='ManyToManyType'}">selected="selected"</c:if>>多对多关联</option>
				</select>
				<span>
					<a class="Button" href="javascript:createwindow('字段配置', 'cgformButtonController.do?fieldList&buttonId=${cgformButtonPage.id }&formId=${cgformButtonPage.formId }',700,300);">字段配置</a>
					<label>关系表:</label>
					<select name="manytomanytable.id">
						<c:forEach items="${heads}" var="head" >
							<option value="${head.id}" <c:if test="${head.id==cgformButtonPage.manytomanytable.id}">selected="selected"</c:if>>
									${head.tableName}(${head.content})
							</option>
						</c:forEach>>
					</select>
				</span>
				<span class="Validform_checktip"></span>
			</td>
		</tr>

		<tr>
			<td align="right"><label class="Validform_label">表单处理形式: </label></td>
			<td class="value">
				<select id="formProcessType" name="formProcessType">
					<option value="ajax" <c:if test="${cgformButtonPage.formProcessType=='ajax'}">selected="selected"</c:if>>ajax返回（表示处理完后 用ajax返回）</option>
					<option value="void" <c:if test="${cgformButtonPage.formProcessType=='void'}">selected="selected"</c:if>>不处理（表示不提交表单）</option>
				</select>
			</td>
		</tr>

		<%--<tr>--%>
			<%--<td align="right"><label class="Validform_label"> <t:mutiLang langKey="common.button.style"/> </label></td>--%>
			<%--<td class="value"><select name="buttonStyle" id="buttonStyle">--%>
				<%--<option value="link" <c:if test="${cgformButtonPage.buttonStyle=='link'}">selected="selected"</c:if>>link</option>--%>
				<%--<option value="button" <c:if test="${cgformButtonPage.buttonStyle=='button'}">selected="selected"</c:if>>button</option>--%>
			<%--</select> <span class="Validform_checktip"></span></td>--%>
		<%--</tr>--%>
		<%--<tr>--%>
			<%--<td align="right"><label class="Validform_label"> <t:mutiLang langKey="common.action.type"/>: </label></td>--%>
			<%--<td class="value"><select name="optType" id="optType">--%>
				<%--<option value="js" <c:if test="${cgformButtonPage.optType=='js'}">selected="selected"</c:if>>js</option>--%>
				<%--<option value="action" <c:if test="${cgformButtonPage.optType=='action'}">selected="selected"</c:if>>action</option>--%>
			<%--</select> <span class="Validform_checktip"></span></td>--%>
		<%--</tr>--%>
		<tr>
			<td align="right"><label class="Validform_label"> <t:mutiLang langKey="common.show.sequence"/>: </label></td>
			<td class="value"><input class="inputxt" id="orderNum" name="orderNum" datatype="n" value="${cgformButtonPage.orderNum}"> <span class="Validform_checktip"></span></td>
		</tr>
		<tr>
			<td align="right"><label class="Validform_label"> <t:mutiLang langKey="common.show.icon.style"/>: </label></td>
			<td class="value">
				<input class="inputxt" id="buttonIcon" name="buttonIcon" datatype="*"
					   value="<c:if test="${cgformButtonPage.buttonIcon!=null&&cgformButtonPage.buttonIcon!=''}">${cgformButtonPage.buttonIcon}</c:if><c:if test="${cgformButtonPage.buttonIcon==null||cgformButtonPage.buttonIcon==''}">edit</c:if>">

				<a href="#" class="easyui-linkbutton l-btn l-btn-plain" plain="true" icon="icon-add" onclick="add('UI标签链接按钮样式','webpage/common/functionIconStyleList.jsp?style=urlfont','iconList',null,null)"><span class="l-btn-left"><span class="l-btn-text icon-add l-btn-icon-left">UI标签链接按钮样式</span></span>
				</a>

				<span class="Validform_checktip"></span></td>
		</tr>
		<%--<tr>--%>
			<%--<td align="right"><label class="Validform_label"> <t:mutiLang langKey="common.show.expression"/>: </label></td>--%>
			<%--<td class="value"><input class="inputxt" id="exp" name="exp" ignore="ignore" value="${cgformButtonPage.exp}"> <span class="Validform_checktip"></span></td>--%>
		<%--</tr>--%>
		<tr>
			<td align="right"><label class="Validform_label"> <t:mutiLang langKey="common.status"/>:  </label></td>
			<td class="value"><select name="buttonStatus" id="buttonStatus">
				<option value="0" <c:if test="${cgformButtonPage.buttonStatus=='0'}">selected="selected"</c:if>><t:mutiLang langKey="common.inactive"/></option>
				<option value="1" <c:if test="${cgformButtonPage.buttonStatus=='1'}">selected="selected"</c:if>><t:mutiLang langKey="common.active"/></option>
			</select> <span class="Validform_checktip"></span></td>
		</tr>
	</table>
</t:formvalid>
</body>
</html>